package com.example.demo.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.demo.common.entity.SysUser;
import com.example.demo.entity.websocket.User;
import com.example.demo.mapper.UserMapper;
import com.example.demo.service.SystemService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
@Slf4j
public class SystemServiceImpl implements SystemService {
    @Resource
    private UserMapper userMapper;
    @Override
    public List<User> selectAll(){
        QueryWrapper<User> sysUserQueryWrapper = new QueryWrapper<>();
        sysUserQueryWrapper.lambda().eq(User::getUserId,"1");
        List<User> sysUserList = userMapper.selectList(sysUserQueryWrapper);
        return sysUserList;
    }
}
